<?php
/**
 * +----------------------------------------------------------------------
 * | Copyright © Sogu Technologies Co. Ltd 2018-2050 All rights reserved.
 * +----------------------------------------------------------------------
 * | File name: RepayRecord.php
 * +----------------------------------------------------------------------
 * | Author: lijiafei
 * +----------------------------------------------------------------------
 * | Description:
 * +----------------------------------------------------------------------
 * | Others: 其他内容的说明
 * +----------------------------------------------------------------------
 * | History:
 * +----------------------------------------------------------------------
 * | 1.Date: 2019/3/2 Author: lijiafei Modification: 创建
 * +----------------------------------------------------------------------
 */

namespace App\Models\Traits;

trait RepayRecord
{

    /**
     * Description:把催收系统的请求流水号保存下来
     * Author:lijiafei
     * @param $applyNumber string 流水号
     * @param $record_id int repayRecord表的id
     */
    public static function saveApplyNumber($applyNumber,$record_id)
    {
        if(!empty($record_id) && !empty($applyNumber)){
            $updateData['apply_number'] = $applyNumber;
            self::where('id',$record_id)->update($updateData);
        }

    }
}